<!doctype html>
<html lang="{{ app()->getLocale() }}">
<head>
	<meta charset="utf-8">
	<meta http-equiv="X-UA-Compatible" content="IE=edge">
	<meta name="viewport" content="width=device-width, initial-scale=1">

	<title>登录</title>

	<!-- Fonts -->
	<link href="" rel="stylesheet" type="text/css">
	<!-- Styles -->
	<style>
		div {
			color: black
		}
	</style>
</head>

<body>
	<div>
		<form action="" method="post" enctype="multipart/form-data" >
			<input name="user" type="text" placeholder="用户名" /><br>
			<input name="age" type="text" placeholder="年龄" /><br>
			<input name="email" type="text" placeholder="邮箱" /><br>
			<input name="photo" type="file" /><br>
			
			{{-- <img src="{{captcha_src()}}" alt="alt" title="title"><br> --}}
			<img src="{{captcha_src('flat')}}" alt="alt" title="title"><br>
			{{-- <img src="{{captcha_src('mini')}}" alt="alt" title="title"><br>
			<img src="{{captcha_src('inverse')}}" alt="alt" title="title"><br> --}}
			
			 {{-- {{csrf_field()}} @csrf v5.6支持这种写法 --}}
			 @csrf
			<input type="submit" value="登录" />
		</form>
		@if($errors->any())
		<div>
			  {{-- {{dd($errors->toArray())}} --}}
			<ul>
				@foreach($errors->all() as $k=>$error)
				<li>{{$k}} ===>{{$error}}</li>
				@endforeach
				<br><br> 
				{{-- @foreach ($errors->toArray()['user'] as $item)
				<li>{{$item}}</li>
				@endforeach --}}
				
			</ul>

		</div>
		@endif
	</div>
</body>

</html>